﻿
namespace AppServer.Core
{
    /// <summary>
    /// DefaultCommand
    /// </summary>
    public class DefaultCommand:ICommand
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="body">命令体</param>
        public DefaultCommand(byte[] body)
        {
            this.Body = body;
        }

        #region ICommand 成员

        /// <summary>
        /// 命令体
        /// </summary>
        public byte[] Body
        {
            get;
            private set;
        }

        /// <summary>
        /// 获取数据包
        /// </summary>
        /// <returns>数据包</returns>
        public virtual byte[] GetBytes()
        {
            return this.Body;
        }

        #endregion

       
    }
}
